import {
  IEditorContainerController,
  IEditorProvider,
} from '@ibiz-template/runtime';
import { IEditor } from '@ibiz/model-core';
import { CheckinDateRangeExController } from './checkin-date-range-ex.controller';

export class CheckinDateRangeExProvider implements IEditorProvider {
  formEditor: string = 'IBizCheckinDateRangeEx';

  gridEditor: string = 'IBizCheckinDateRangeEx';

  async createController(
    editorModel: IEditor,
    parentController: IEditorContainerController,
  ): Promise<CheckinDateRangeExController> {
    const c = new CheckinDateRangeExController(editorModel, parentController);
    await c.init();
    return c;
  }
}
